import Vue from 'vue'
import App from './App'
import router from './router/index'

import iView from 'iview';
import 'iview/dist/styles/iview.css';    // 使用 CSS

Vue.use(iView);

import Checkbox from 'iview/src/components/checkbox';//引用组件
module: {
  rules: [
    { test: /iview.src.*?js$/, loader: 'babel' },
    { test: /\.js$/, loader: 'babel', exclude: /node_modules/ }
  ]
}
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
